import TodoInfo from '../components/TodoInfo';

//通过函数返回一个组件
export default function Detail(todo) {
  // console.log(todo);
  //{_id: '6409d2d86f05761c0dbf0dc1', title: '111', content: '111', completed: false, createdAt: '2023-03-09T12:36:40.718Z', …}
  return `<div>${TodoInfo(todo)}</div>`;
}
